<div class="reference">
   <div class="titlepage">
      <div>
         <h1 class="title"><a name="d9e1"></a>URI (Uniform Resource Identifier) Processing
         </h1>
      </div>
      <div>
         <h3 class="author">Jason Diamond</h3>
      </div>
      <div>
         <p class="releaseinfo">
            $Id: uri.html,v 1.1 2001/11/03 00:50:28 balls Exp $
                  
         </p>
      </div>
      <div>
         <p class="copyright">Copyright &copy; 2001 Jason Diamond</p>
      </div>
      <hr>
   </div>
   <div class="partintro">
      <div></div>
      <div class="section"><a name="d9e22"></a><div class="titlepage">
            <div>
               <h2 class="title" style="clear: both"><a name="d9e22"></a>Introduction
               </h2>
            </div>
         </div>
         <p>This module provides templates for processing URIs (Uniform Resource Identifers).</p>
      </div>
      <div class="toc">
         <p><b>Table of Contents</b></p>
         <dl>
            <dt><a href="#template.uri:is-absolute-uri">uri:is-absolute-uri</a> - Determines if a URI is absolute or relative.
            </dt>
            <dt><a href="#template.uri:get-uri-scheme">uri:get-uri-scheme</a> - Gets the scheme part of a URI.
            </dt>
            <dt><a href="#template.uri:get-uri-authority">uri:get-uri-authority</a> - Gets the authority part of a URI.
            </dt>
            <dt><a href="#template.uri:get-uri-path">uri:get-uri-path</a> - Gets the path part of a URI.
            </dt>
            <dt><a href="#template.uri:get-uri-query">uri:get-uri-query</a> - Gets the query part of a URI.
            </dt>
            <dt><a href="#template.uri:get-uri-fragment">uri:get-uri-fragment</a> - Gets the fragment part of a URI.
            </dt>
         </dl>
      </div>
   </div>
   <hr>
   <div class="refentry">
      <h1 class="title"><a name="template.uri:is-absolute-uri"></a>uri:is-absolute-uri
      </h1>
      <div class="refnamediv"><a name="d9e28"></a><h2>Name</h2>uri:is-absolute-uri &#8212; Determines if a URI is absolute or relative.
      </div>
      <div class="refsynopsisdiv"><a name="d9e33"></a><h2>Synopsis</h2><pre class="synopsis">&lt;xsl:template name="uri:is-absolute-uri"&gt;
&lt;xsl:param name="uri"/&gt;
  ...
&lt;/xsl:template&gt;</pre></div>
      <div class="refdescription"><a name="d9e36"></a>
               
         
         <p>Abosulte URIs start with a scheme (like "http:" or "mailto:").</p>
         
             
      </div>
      <div class="refparameter"><b><a name="d9e41"></a>Parameters</b>
               
         
         <div class="variablelist">
            <dl>
               <dt><a name="d9e44"></a><span class="term">uri</span></dt>
               <dd>
                  <p><a name="d9e47"></a>An absolute or relative URI.
                  </p>
               </dd>
            </dl>
         </div>
         
             
      </div>
      <div class="refreturn"><b><a name="d9e51"></a>Returns</b>
               
         
         <p>Returns 'true' if the URI is absolute or '' if it's not.</p>
         
             
      </div>
   </div>
   <hr>
   <div class="refentry">
      <h1 class="title"><a name="template.uri:get-uri-scheme"></a>uri:get-uri-scheme
      </h1>
      <div class="refnamediv"><a name="d9e57"></a><h2>Name</h2>uri:get-uri-scheme &#8212; Gets the scheme part of a URI.
      </div>
      <div class="refsynopsisdiv"><a name="d9e62"></a><h2>Synopsis</h2><pre class="synopsis">&lt;xsl:template name="uri:get-uri-scheme"&gt;
&lt;xsl:param name="uri"/&gt;
  ...
&lt;/xsl:template&gt;</pre></div>
      <div class="refdescription"><a name="d9e65"></a>
               
         
         <p>The ':' is not part of the scheme.</p>
         
             
      </div>
      <div class="refparameter"><b><a name="d9e70"></a>Parameters</b>
               
         
         <div class="variablelist">
            <dl>
               <dt><a name="d9e73"></a><span class="term">uri</span></dt>
               <dd>
                  <p><a name="d9e76"></a>An absolute or relative URI.
                  </p>
               </dd>
            </dl>
         </div>
         
             
      </div>
      <div class="refreturn"><b><a name="d9e80"></a>Returns</b>
               
         
         <p>Returns the scheme (without the ':') or '' if the URI is relative.</p>
         
             
      </div>
   </div>
   <hr>
   <div class="refentry">
      <h1 class="title"><a name="template.uri:get-uri-authority"></a>uri:get-uri-authority
      </h1>
      <div class="refnamediv"><a name="d9e86"></a><h2>Name</h2>uri:get-uri-authority &#8212; Gets the authority part of a URI.
      </div>
      <div class="refsynopsisdiv"><a name="d9e91"></a><h2>Synopsis</h2><pre class="synopsis">&lt;xsl:template name="uri:get-uri-authority"&gt;
&lt;xsl:param name="uri"/&gt;
  ...
&lt;/xsl:template&gt;</pre></div>
      <div class="refdescription"><a name="d9e94"></a>
               
         
         <p>The authority usually specifies the host machine for a resource. It always follows '//' in a typical URI.</p>
         
             
      </div>
      <div class="refparameter"><b><a name="d9e99"></a>Parameters</b>
               
         
         <div class="variablelist">
            <dl>
               <dt><a name="d9e102"></a><span class="term">uri</span></dt>
               <dd>
                  <p><a name="d9e105"></a>An absolute or relative URI.
                  </p>
               </dd>
            </dl>
         </div>
         
             
      </div>
      <div class="refreturn"><b><a name="d9e109"></a>Returns</b>
               
         
         <p>Returns the authority (without the '//') or '' if the URI has no authority.</p>
         
             
      </div>
   </div>
   <hr>
   <div class="refentry">
      <h1 class="title"><a name="template.uri:get-uri-path"></a>uri:get-uri-path
      </h1>
      <div class="refnamediv"><a name="d9e115"></a><h2>Name</h2>uri:get-uri-path &#8212; Gets the path part of a URI.
      </div>
      <div class="refsynopsisdiv"><a name="d9e120"></a><h2>Synopsis</h2><pre class="synopsis">&lt;xsl:template name="uri:get-uri-path"&gt;
&lt;xsl:param name="uri"/&gt;
  ...
&lt;/xsl:template&gt;</pre></div>
      <div class="refdescription"><a name="d9e123"></a>
               
         
         <p>The path usually comes after the '/' in a URI.</p>
         
             
      </div>
      <div class="refparameter"><b><a name="d9e128"></a>Parameters</b>
               
         
         <div class="variablelist">
            <dl>
               <dt><a name="d9e131"></a><span class="term">uri</span></dt>
               <dd>
                  <p><a name="d9e134"></a>An absolute or relative URI.
                  </p>
               </dd>
            </dl>
         </div>
         
             
      </div>
      <div class="refreturn"><b><a name="d9e138"></a>Returns</b>
               
         
         <p>Returns the path (with any leading '/') or '' if the URI has no path.</p>
         
             
      </div>
   </div>
   <hr>
   <div class="refentry">
      <h1 class="title"><a name="template.uri:get-uri-query"></a>uri:get-uri-query
      </h1>
      <div class="refnamediv"><a name="d9e144"></a><h2>Name</h2>uri:get-uri-query &#8212; Gets the query part of a URI.
      </div>
      <div class="refsynopsisdiv"><a name="d9e149"></a><h2>Synopsis</h2><pre class="synopsis">&lt;xsl:template name="uri:get-uri-query"&gt;
&lt;xsl:param name="uri"/&gt;
  ...
&lt;/xsl:template&gt;</pre></div>
      <div class="refdescription"><a name="d9e152"></a>
               
         
         <p>The query comes after the '?' in a URI.</p>
         
             
      </div>
      <div class="refparameter"><b><a name="d9e157"></a>Parameters</b>
               
         
         <div class="variablelist">
            <dl>
               <dt><a name="d9e160"></a><span class="term">uri</span></dt>
               <dd>
                  <p><a name="d9e163"></a>An absolute or relative URI.
                  </p>
               </dd>
            </dl>
         </div>
         
             
      </div>
      <div class="refreturn"><b><a name="d9e167"></a>Returns</b>
               
         
         <p>Returns the query (without the '?') or '' if the URI has no query.</p>
         
             
      </div>
   </div>
   <hr>
   <div class="refentry">
      <h1 class="title"><a name="template.uri:get-uri-fragment"></a>uri:get-uri-fragment
      </h1>
      <div class="refnamediv"><a name="d9e173"></a><h2>Name</h2>uri:get-uri-fragment &#8212; Gets the fragment part of a URI.
      </div>
      <div class="refsynopsisdiv"><a name="d9e178"></a><h2>Synopsis</h2><pre class="synopsis">&lt;xsl:template name="uri:get-uri-fragment"&gt;
&lt;xsl:param name="uri"/&gt;
  ...
&lt;/xsl:template&gt;</pre></div>
      <div class="refdescription"><a name="d9e181"></a>
               
         
         <p>The fragment comes after the '#' in a URI.</p>
         
             
      </div>
      <div class="refparameter"><b><a name="d9e186"></a>Parameters</b>
               
         
         <div class="variablelist">
            <dl>
               <dt><a name="d9e189"></a><span class="term">uri</span></dt>
               <dd>
                  <p><a name="d9e192"></a>An absolute or relative URI.
                  </p>
               </dd>
            </dl>
         </div>
         
             
      </div>
      <div class="refreturn"><b><a name="d9e196"></a>Returns</b>
               
         
         <p>Returns the fragment (without the '#') or '' if the URI has no fragment.</p>
         
             
      </div>
   </div>
</div>